package com.ivan.hospital.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ivan.model.entity.hosp.Department;
import com.ivan.model.vo.hosp.DepartmentQueryVo;
import com.ivan.model.vo.hosp.DepartmentVo;

import java.util.List;

/*
 * @Author      Ivan
 * @Date        2023/4/4 20:39
 * @Description
 */
public interface DepartmentService {
    //条件查询医院科室带分页
    Page<Department> findByPage(long current, long limit, DepartmentQueryVo queryVo);

    //添加医院科室
    int saveDepartment(Department department);

    //根据hascode查询所有科室
    List<DepartmentVo> getDeptListByHascode(String hoscode);

    //根据id查询医院科室
    Department findById(Long id);

    //根据id删除医院科室
    int removeById(Long id);

    //根据idList批量删除医院科室
    int removeByIds(List<Long> idList);

    //修改医院科室
    int updateDepartment(Department department);
}
